home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / DU Folder / Mnu / Sources / Include / MnuFrm.h < prev    next >
Encoding:
Text File  |  1995-10-13  |  1.2 KB  |  43 lines  |  [TEXT/MPS ]

  1. //    Copyright © 1995 Apple Computer, Inc. All rights reserved.
  2. //    Release Version:    $ 1.0 d11 $
  3.  
  4. #ifndef _MNUFRAME_
  5. #define _MNUFRAME_
  6.  
  7. //=======================================================================
  8. // ----- Framework Includes -----
  9. #ifndef FWFRAME_H
  10. #include <FWFrame.h>        // FW_CFrame
  11. #endif
  12.  
  13. //=======================================================================
  14. class FW_CLASS_ATTR CMnuPart;
  15. class FW_CLASS_ATTR FW_CMenuEvent;
  16.  
  17. //=======================================================================
  18. class FW_CLASS_ATTR CMnuFrame : public FW_CFrame {
  19. public:
  20.                         CMnuFrame(Environment* ev, 
  21.                                     ODFrame* odFrame, 
  22.                                     FW_CPresentation* presentation, 
  23.                                     CMnuPart* mnuPart);
  24.     virtual             ~CMnuFrame();
  25. protected:
  26. // overrides
  27.     virtual void        Draw(Environment *ev, 
  28.                              ODFacet* odFacet, 
  29.                              ODShape* invalidShape);
  30.     virtual FW_Boolean    DoAdjustMenus(Environment* ev,
  31.                                       FW_CMenuBar* menuBar, 
  32.                                       FW_Boolean hasMenuFocus,
  33.                                       FW_Boolean isRoot);
  34.     virtual FW_Boolean    DoMenu(Environment* ev,
  35.                                const FW_CMenuEvent& theMenuEvent);
  36. private:
  37.     CMnuPart*             fMnuPart;
  38.     FW_Boolean            fSoundOn;
  39. };
  40.  
  41. //=======================================================================
  42. #endif
  43.